package com.bschlearn.group.message.group;

import java.util.Date;

import com.bschlearn.group.message.BaseReq;
import com.fasterxml.jackson.annotation.JsonFormat;

public class GroupReq extends BaseReq{
	/**
     * 组id
     */
    private Integer id;

    /**
     * 组名
     */
    private String name;

    /**
     * 小组描述
     */
    private String description;

    /**
     * 状态：0 待审核   1 已成立
     */
    private Integer status;

    /**
     * 最大小组成员数
     */
    private Integer maxNum;

    /**
     * 最后修改时间
     */
    @JsonFormat(pattern="yyyy/MM/dd hh:MM:ss a",locale="zh",timezone="GMT+8")
    private Date modified;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy/MM/dd hh:MM:ss a",locale="zh",timezone="GMT+8")
    private Date created;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getMaxNum() {
		return maxNum;
	}

	public void setMaxNum(Integer maxNum) {
		this.maxNum = maxNum;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("GroupReq [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", description=");
		builder.append(description);
		builder.append(", status=");
		builder.append(status);
		builder.append(", maxNum=");
		builder.append(maxNum);
		builder.append(", modified=");
		builder.append(modified);
		builder.append(", created=");
		builder.append(created);
		builder.append("]");
		return builder.toString();
	}
    
}
